home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Open Transport / Sample Code / NetFractal™ / ES stuff□ / InPoint.h < prev    next >
Encoding:
Text File  |  1996-11-19  |  801 b   |  59 lines  |  [TEXT/MPCC]

  1. // InPoint.h
  2.  
  3. #pragma once
  4.  
  5.  
  6. #include "NetPoint.h"
  7.  
  8. #include <OpenTptInternet.h>
  9.  
  10. struct packetBuffer {
  11.     long    a;
  12.     long    b;
  13.     long    c;
  14.     long    d;
  15.     long    e;
  16.     char    mScanBuffer[1500];
  17. };
  18.  
  19.  
  20. class InPoint :
  21.     public NetPoint {
  22.  
  23.     
  24. protected:
  25.     union {
  26.         InetAddress    inet;
  27.     }            fHisAddress;
  28.     long        fHisAddressSize;
  29.  
  30.     packetBuffer        fPacket;
  31.  
  32.  
  33. public:
  34.  
  35.                             InPoint(
  36.                                 const char *protocol,
  37.                                 const char *address,
  38.                                 short port);
  39.                             ~InPoint();
  40.  
  41.     
  42. protected:
  43.     static pascal void        Notifier(
  44.                                 void* contextPtr,
  45.                                 OTEventCode code, 
  46.                                 OTResult result,
  47.                                 void* cookie);
  48.     void                     HandleNotify(
  49.                                 OTEventCode code,
  50.                                 OTResult result,
  51.                                 void* cookie);
  52.     void                    GetData();
  53.  
  54.     virtual void            DoSomethingWithTheData(
  55.                                 void *data,
  56.                                 long size);
  57. };
  58.  
  59.